package com.ybkj.daijia.server.dockingsupervise.zhuanche;

import java.io.Serializable;

public class SjwzMessage implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 空载.
     */
    public static String SJWZ_OPERATETYPE_EMPTY = "EMPTY";
    /**
     * 停运.
     */
    public static String SJWZ_OPERATETYPE_HALT = "HALT";
    /**
     * 调度.
     */
    public static String SJWZ_OPERATETYPE_DISPATCH = "DISPATCH";
    /**
     * 载客.
     */
    public static String SJWZ_OPERATETYPE_PASSENGER = "PASSENGER";
    /**
     * 司机上班.
     */
    public static String SJWZ_POSITION_SJSB = "SJSB";
    /**
     * 司机下班.
     */
    public static String SJWZ_POSITION_SJXB = "SJXB";
    /**
     * 乘客上车.
     */
    public static String SJWZ_POSITION_CKSC = "CKSC";
    /**
     * 乘客下车.
     */
    public static String SJWZ_POSITION_CKXC = "CKXC";
    /**
     * 定时上传.
     */
    public static String SJWZ_POSITION_AUTO = "AUTO";
    /**
     * 订单派单.
     */
    public static String SJWZ_POSITION_DDPD = "DDPD";
    private Long id;
    private String driverName;
    private String dirverIdCode;
    private String vehicleLicense;
    private String gpsTime;
    private Double lon;
    private Double lat;
    private Double speed;
    private String operateType;
    private String positionType;
    private Double azimuth;
    private String warnStatus;
    private String alarmStatus;
    private String adminCode;
    private String orderNo;
    private Double altitude;
    private String vehStatus;
    private String enCode;
    private String appKey;
    private String type = Type.MOREQ_SJWZ;

    public String getType() {
        return type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName == null ? null : driverName.trim();
    }

    public String getDirverIdCode() {
        return dirverIdCode;
    }

    public void setDirverIdCode(String dirverIdCode) {
        this.dirverIdCode = dirverIdCode == null ? null : dirverIdCode.trim();
    }

    public String getVehicleLicense() {
        return vehicleLicense;
    }

    public void setVehicleLicense(String vehicleLicense) {
        this.vehicleLicense = vehicleLicense == null ? null : vehicleLicense.trim();
    }

    public String getGpsTime() {
        return gpsTime;
    }

    public void setGpsTime(String gpsTime) {
        this.gpsTime = gpsTime == null ? null : gpsTime.trim();
    }

    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getSpeed() {
        return speed;
    }

    public void setSpeed(Double speed) {
        this.speed = speed;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType == null ? null : operateType.trim();
    }

    public String getPositionType() {
        return positionType;
    }

    public void setPositionType(String positionType) {
        this.positionType = positionType == null ? null : positionType.trim();
    }

    public Double getAzimuth() {
        return azimuth;
    }

    public void setAzimuth(Double azimuth) {
        this.azimuth = azimuth;
    }

    public String getWarnStatus() {
        return warnStatus;
    }

    public void setWarnStatus(String warnStatus) {
        this.warnStatus = warnStatus == null ? null : warnStatus.trim();
    }

    public String getAlarmStatus() {
        return alarmStatus;
    }

    public void setAlarmStatus(String alarmStatus) {
        this.alarmStatus = alarmStatus == null ? null : alarmStatus.trim();
    }

    public String getAdminCode() {
        return adminCode;
    }

    public void setAdminCode(String adminCode) {
        this.adminCode = adminCode == null ? null : adminCode.trim();
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo.trim();
    }

    public Double getAltitude() {
        return altitude;
    }

    public void setAltitude(Double altitude) {
        this.altitude = altitude;
    }

    public String getVehStatus() {
        return vehStatus;
    }

    public void setVehStatus(String vehStatus) {
        this.vehStatus = vehStatus == null ? null : vehStatus.trim();
    }

    public String getEnCode() {
        return enCode;
    }

    public void setEnCode(String enCode) {
        this.enCode = enCode == null ? null : enCode.trim();
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SjwzMessage other = (SjwzMessage) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDriverName() == null ? other.getDriverName() == null
            : this.getDriverName().equals(other.getDriverName()))
            && (this.getDirverIdCode() == null ? other.getDirverIdCode() == null
            : this.getDirverIdCode().equals(other.getDirverIdCode()))
            && (this.getVehicleLicense() == null ? other.getVehicleLicense() == null
            : this.getVehicleLicense().equals(other.getVehicleLicense()))
            && (this.getGpsTime() == null ? other.getGpsTime() == null
            : this.getGpsTime().equals(other.getGpsTime()))
            && (this.getLon() == null ? other.getLon() == null
            : this.getLon().equals(other.getLon()))
            && (this.getLat() == null ? other.getLat() == null
            : this.getLat().equals(other.getLat()))
            && (this.getSpeed() == null ? other.getSpeed() == null
            : this.getSpeed().equals(other.getSpeed()))
            && (this.getOperateType() == null ? other.getOperateType() == null
            : this.getOperateType().equals(other.getOperateType()))
            && (this.getPositionType() == null ? other.getPositionType() == null
            : this.getPositionType().equals(other.getPositionType()))
            && (this.getAzimuth() == null ? other.getAzimuth() == null
            : this.getAzimuth().equals(other.getAzimuth()))
            && (this.getWarnStatus() == null ? other.getWarnStatus() == null
            : this.getWarnStatus().equals(other.getWarnStatus()))
            && (this.getAlarmStatus() == null ? other.getAlarmStatus() == null
            : this.getAlarmStatus().equals(other.getAlarmStatus()))
            && (this.getAdminCode() == null ? other.getAdminCode() == null
            : this.getAdminCode().equals(other.getAdminCode()))
            && (this.getOrderNo() == null ? other.getOrderNo() == null
            : this.getOrderNo().equals(other.getOrderNo()))
            && (this.getAltitude() == null ? other.getAltitude() == null
            : this.getAltitude().equals(other.getAltitude()))
            && (this.getVehStatus() == null ? other.getVehStatus() == null
            : this.getVehStatus().equals(other.getVehStatus()))
            && (this.getEnCode() == null ? other.getEnCode() == null
            : this.getEnCode().equals(other.getEnCode()))
            && (this.getAppKey() == null ? other.getAppKey() == null
            : this.getAppKey().equals(other.getAppKey()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDriverName() == null) ? 0 : getDriverName().hashCode());
        result = prime * result + ((getDirverIdCode() == null) ? 0 : getDirverIdCode().hashCode());
        result =
            prime * result + ((getVehicleLicense() == null) ? 0 : getVehicleLicense().hashCode());
        result = prime * result + ((getGpsTime() == null) ? 0 : getGpsTime().hashCode());
        result = prime * result + ((getLon() == null) ? 0 : getLon().hashCode());
        result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
        result = prime * result + ((getSpeed() == null) ? 0 : getSpeed().hashCode());
        result = prime * result + ((getOperateType() == null) ? 0 : getOperateType().hashCode());
        result = prime * result + ((getPositionType() == null) ? 0 : getPositionType().hashCode());
        result = prime * result + ((getAzimuth() == null) ? 0 : getAzimuth().hashCode());
        result = prime * result + ((getWarnStatus() == null) ? 0 : getWarnStatus().hashCode());
        result = prime * result + ((getAlarmStatus() == null) ? 0 : getAlarmStatus().hashCode());
        result = prime * result + ((getAdminCode() == null) ? 0 : getAdminCode().hashCode());
        result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
        result = prime * result + ((getAltitude() == null) ? 0 : getAltitude().hashCode());
        result = prime * result + ((getVehStatus() == null) ? 0 : getVehStatus().hashCode());
        result = prime * result + ((getEnCode() == null) ? 0 : getEnCode().hashCode());
        result = prime * result + ((getAppKey() == null) ? 0 : getAppKey().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", driverName=").append(driverName);
        sb.append(", dirverIdCode=").append(dirverIdCode);
        sb.append(", vehicleLicense=").append(vehicleLicense);
        sb.append(", gpsTime=").append(gpsTime);
        sb.append(", lon=").append(lon);
        sb.append(", lat=").append(lat);
        sb.append(", speed=").append(speed);
        sb.append(", operateType=").append(operateType);
        sb.append(", positionType=").append(positionType);
        sb.append(", azimuth=").append(azimuth);
        sb.append(", warnStatus=").append(warnStatus);
        sb.append(", alarmStatus=").append(alarmStatus);
        sb.append(", adminCode=").append(adminCode);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", altitude=").append(altitude);
        sb.append(", vehStatus=").append(vehStatus);
        sb.append(", enCode=").append(enCode);
        sb.append(", appKey=").append(appKey);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
